package com.hdoit.ares.logical.insu.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.apache.ibatis.type.Alias;

import com.tennetcn.common.message.ModelBase;
/**
 * @author      lvsi
 * @email       
 * @createtime  2017年12月09日 21:44:41
 * @comment
 */
@Alias("insurance")
@Entity
@Table(name="insu_insurance")
public class Insurance extends ModelBase{
    //主键
    @Id
    @Column(name="id")
    private String id;

    //一级险
    @Column(name="insuranceOne")
    private String insuranceOne;

    //二级险
    @Column(name="insuranceTwo")
    private String insuranceTwo;

    //产品名称
    @Column(name="insuranceName")
    private String insuranceName;

    //最低保费
    @Column(name="minPremium")
    private double minPremium;

    //新品/热卖
    @Column(name="status")
    private String status;

    //推广比例
    @Column(name="spreadProportion")
    private double spreadProportion;

    //一级分享比例
    @Column(name="shareProportionOne")
    private double shareProportionOne;

    //管理比例
    @Column(name="manageProportion")
    private double manageProportion;

    public double getSpreadProportion() {
		return spreadProportion;
	}
	public double getManageProportion() {
		return manageProportion;
	}
	//主图
    @Column(name="mainImg")
    private String mainImg;

    //产品附加图
    @Column(name="addImg")
    private String addImg;

    //产品状态
    @Column(name="state")
    private String state;

    //保障计划
    @Column(name="securityPlan")
    private String securityPlan;

    //创建时间
    @Column(name="createDate")
    private Date createDate;

    //创建人姓名
    @Column(name="createName")
    private String createName;

    //修改时间
    @Column(name="modifyDate")
    private Date modifyDate;

    //修改人姓名
    @Column(name="modifyName")
    private String modifyName;

    //全拼
    @Column(name="code")
    private String code;

    //首字母连读
    @Column(name="markCode")
    private String markCode;

    //保险公司
    @Column(name="insuranceCompanyId")
    private String insuranceCompanyId;

    //删除标识
    @Column(name="deleteMark")
    private String deleteMark;

    //保险内容
    @Column(name="insuranceContent")
    private String insuranceContent;
    
    //总比例
    @Column(name="totalProportion")
    private double totalProportion;
    
    //产品链接
    @Column(name="insuranceLink")
    private String insuranceLink;
    
    //犹豫期
    @Column(name="hesitatePeriod")
    private int hesitatePeriod;
    
    //二级分享比例
    @Column(name="shareProportionTwo")
    private double shareProportionTwo;

  //孵化比例
    @Column(name="hatchProportion")
    private double hatchProportion;

    //服务比例
    @Column(name="serverProportion")
    private double serverProportion;

    //城市比例
    @Column(name="cityProportion")
    private double cityProportion;

    //公司比例
    @Column(name="companyProportion")
    private double companyProportion;

    //产品排序编码
    @Column(name="insuSortCode")
    private int insuSortCode;
    
    //热卖排序编码
    @Column(name="hotSortCode")
    private int hotSortCode;
    
    //渠道名称
    @Column(name="channelName")
    private String channelName;
     
    @Transient
    private String companyUrl;
    
    @Transient
    private String insuMainUrl;
    
    @Transient
    private String insuAddUrl;
    
    
	public String getChannelName() {
		return channelName;
	}
	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}
	public int getHotSortCode() {
		return hotSortCode;
	}
	public void setHotSortCode(int hotSortCode) {
		this.hotSortCode = hotSortCode;
	}
	public int getInsuSortCode() {
		return insuSortCode;
	}
	public void setInsuSortCode(int insuSortCode) {
		this.insuSortCode = insuSortCode;
	}
	public double getShareProportionOne() {
		return shareProportionOne;
	}
	public void setShareProportionOne(double shareProportionOne) {
		this.shareProportionOne = shareProportionOne;
	}
	public double getShareProportionTwo() {
		return shareProportionTwo;
	}
	public void setShareProportionTwo(double shareProportionTwo) {
		this.shareProportionTwo = shareProportionTwo;
	}
	public double getHatchProportion() {
		return hatchProportion;
	}
	public void setHatchProportion(double hatchProportion) {
		this.hatchProportion = hatchProportion;
	}
	public double getServerProportion() {
		return serverProportion;
	}
	public void setServerProportion(double serverProportion) {
		this.serverProportion = serverProportion;
	}
	public double getCityProportion() {
		return cityProportion;
	}
	public void setCityProportion(double cityProportion) {
		this.cityProportion = cityProportion;
	}
	public double getCompanyProportion() {
		return companyProportion;
	}
	public void setCompanyProportion(double companyProportion) {
		this.companyProportion = companyProportion;
	}
	public void setSpreadProportion(double spreadProportion) {
		this.spreadProportion = spreadProportion;
	}
	public void setManageProportion(double manageProportion) {
		this.manageProportion = manageProportion;
	}
	public double getTotalProportion() {
		return totalProportion;
	}
	public void setTotalProportion(double totalProportion) {
		this.totalProportion = totalProportion;
	}
	public int getHesitatePeriod() {
		return hesitatePeriod;
	}
	public void setHesitatePeriod(int hesitatePeriod) {
		this.hesitatePeriod = hesitatePeriod;
	}
	//加一个人群种类Id
    @Transient
    private String peopleId;

    public String getPeopleId() {
		return peopleId;
	}
	public void setPeopleId(String peopleId) {
		this.peopleId = peopleId;
	}
	//引入保险人群中间表
    @Transient
    private InsuranceInsurancePeople insuranceInsurancePeople;
    
   public InsuranceInsurancePeople getInsuranceInsurancePeople() {
		return insuranceInsurancePeople;
	}
	public void setInsuranceInsurancePeople(InsuranceInsurancePeople insuranceInsurancePeople) {
		this.insuranceInsurancePeople = insuranceInsurancePeople;
	}
//引入保险公司表
   @Transient
   private InsuranceCompany insuranceCompany;
    
    public InsuranceCompany getInsuranceCompany() {
	return insuranceCompany;
}
public void setInsuranceCompany(InsuranceCompany insuranceCompany) {
	this.insuranceCompany = insuranceCompany;
}
	//引入保险公司logo链接
    @Transient
    private String logoUrl;
    
    //引入保险公司名称
    @Transient
    private String company;
    
    public String getLogoUrl() {
		return logoUrl;
	}
	public void setLogoUrl(String logoUrl) {
		this.logoUrl = logoUrl;
	}
	
	public String getInsuranceLink() {
		return insuranceLink;
	}
	public void setInsuranceLink(String insuranceLink) {
		this.insuranceLink = insuranceLink;
	}
	public String getId(){
        return this.id;
    }
    public void setId(String id){
         this.id=id;
    }

    public String getInsuranceOne(){
        return this.insuranceOne;
    }
    public void setInsuranceOne(String insuranceOne){
         this.insuranceOne=insuranceOne;
    }

    public String getInsuranceTwo(){
        return this.insuranceTwo;
    }
    public void setInsuranceTwo(String insuranceTwo){
         this.insuranceTwo=insuranceTwo;
    }

    public String getInsuranceName(){
        return this.insuranceName;
    }
    public void setInsuranceName(String insuranceName){
         this.insuranceName=insuranceName;
    }

    public double getMinPremium(){
        return this.minPremium;
    }
    public void setMinPremium(double minPremium){
         this.minPremium=minPremium;
    }

    public String getStatus(){
        return this.status;
    }
    public void setStatus(String status){
         this.status=status;
    }

    public String getMainImg(){
        return this.mainImg;
    }
    public void setMainImg(String mainImg){
         this.mainImg=mainImg;
    }

    public String getAddImg(){
        return this.addImg;
    }
    public void setAddImg(String addImg){
         this.addImg=addImg;
    }

    public String getState(){
        return this.state;
    }
    public void setState(String state){
         this.state=state;
    }

    public String getSecurityPlan(){
        return this.securityPlan;
    }
    public void setSecurityPlan(String securityPlan){
         this.securityPlan=securityPlan;
    }

    public Date getCreateDate(){
        return this.createDate;
    }
    public void setCreateDate(Date createDate){
         this.createDate=createDate;
    }

    public String getCreateName(){
        return this.createName;
    }
    public void setCreateName(String createName){
         this.createName=createName;
    }

    public Date getModifyDate(){
        return this.modifyDate;
    }
    public void setModifyDate(Date modifyDate){
         this.modifyDate=modifyDate;
    }

    public String getModifyName(){
        return this.modifyName;
    }
    public void setModifyName(String modifyName){
         this.modifyName=modifyName;
    }

    public String getCode(){
        return this.code;
    }
    public void setCode(String code){
         this.code=code;
    }

    public String getMarkCode(){
        return this.markCode;
    }
    public void setMarkCode(String markCode){
         this.markCode=markCode;
    }

    public String getInsuranceCompanyId() {
		return insuranceCompanyId;
	}
	public void setInsuranceCompanyId(String insuranceCompanyId) {
		this.insuranceCompanyId = insuranceCompanyId;
	}
	public String getDeleteMark(){
        return this.deleteMark;
    }
    public void setDeleteMark(String deleteMark){
         this.deleteMark=deleteMark;
    }

    public String getInsuranceContent(){
        return this.insuranceContent;
    }
    public void setInsuranceContent(String insuranceContent){
         this.insuranceContent=insuranceContent;
    }
	public String getCompany() {
		return company;
	}
	public void setCompany(String company) {
		this.company = company;
	}
	public String getCompanyUrl() {
		return companyUrl;
	}
	public void setCompanyUrl(String companyUrl) {
		this.companyUrl = companyUrl;
	}
	public String getInsuMainUrl() {
		return insuMainUrl;
	}
	public void setInsuMainUrl(String insuMainUrl) {
		this.insuMainUrl = insuMainUrl;
	}
	public String getInsuAddUrl() {
		return insuAddUrl;
	}
	public void setInsuAddUrl(String insuAddUrl) {
		this.insuAddUrl = insuAddUrl;
	}

}
